Integrand size = 25, antiderivative size = 112 \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx=\frac {2 (5 A+7 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{21 b^4 d}+\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {4130, 3854, 3856, 2720} \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx=\frac {2 (5 A+7 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{21 b^4 d}+\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}} \]
[In]
[Out]
Rule 2720
Rule 3854
Rule 3856
Rule 4130
Rubi steps \begin{align*} \text {integral}& = \frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}}+\frac {(5 A+7 C) \int \frac {1}{(b \sec (c+d x))^{3/2}} \, dx}{7 b^2} \\ & = \frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}}+\frac {(5 A+7 C) \int \sqrt {b \sec (c+d x)} \, dx}{21 b^4} \\ & = \frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}}+\frac {\left ((5 A+7 C) \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{21 b^4} \\ & = \frac {2 (5 A+7 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{21 b^4 d}+\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{7 d (b \sec (c+d x))^{7/2}} \\ \end{align*}
Time = 0.92 (sec) , antiderivative size = 79, normalized size of antiderivative = 0.71 \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx=\frac {\frac {4 (5 A+7 C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{\sqrt {\cos (c+d x)}}+2 (13 A+14 C+3 A \cos (2 (c+d x))) \sin (c+d x)}{42 b^3 d \sqrt {b \sec (c+d x)}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 4.66 (sec) , antiderivative size = 291, normalized size of antiderivative = 2.60
method | result | size |
default | \(\frac {\frac {10 i A \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ), i\right )}{21}+\frac {2 i C \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ), i\right )}{3}+\frac {10 i A \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )}{21}+\frac {2 A \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )}{7}+\frac {2 i C \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )}{3}+\frac {10 A \sin \left (d x +c \right )}{21}+\frac {2 C \sin \left (d x +c \right )}{3}}{b^{3} d \sqrt {b \sec \left (d x +c \right )}}\) | \(291\) |
parts | \(-\frac {2 A \left (5 i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )+5 i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )-3 \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )-5 \sin \left (d x +c \right )\right )}{21 d \sqrt {b \sec \left (d x +c \right )}\, b^{3}}-\frac {2 C \left (i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )+i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )-\sin \left (d x +c \right )\right )}{3 d \sqrt {b \sec \left (d x +c \right )}\, b^{3}}\) | \(306\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.09 (sec) , antiderivative size = 119, normalized size of antiderivative = 1.06 \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx=\frac {\sqrt {2} {\left (-5 i \, A - 7 i \, C\right )} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + \sqrt {2} {\left (5 i \, A + 7 i \, C\right )} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 2 \, {\left (3 \, A \cos \left (d x + c\right )^{3} + {\left (5 \, A + 7 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {b}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{21 \, b^{4} d} \]
[In]
[Out]
\[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx=\int \frac {A + C \sec ^{2}{\left (c + d x \right )}}{\left (b \sec {\left (c + d x \right )}\right )^{\frac {7}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + A}{\left (b \sec \left (d x + c\right )\right )^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + A}{\left (b \sec \left (d x + c\right )\right )^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{7/2}} \, dx=\int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{7/2}} \,d x \]
[In]
[Out]